package cn.smile.service.impl;

import cn.smile.dao.UserDaoMapper;
import cn.smile.pojo.User;
import cn.smile.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/7/1
 * @Time: 21:45
 * @Description: No Description
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDaoMapper userDaoMapper;


    /**
     * 登录
     *
     * @param user
     * @return
     */
    @Override
    public User login(User user) {
        return userDaoMapper.findUser(user);
    }



}
